Skip to content

GridColumn to only apply displayWidth to multiLine columns#1900

Merged
cnathe merged 6 commits intodevelopfrom
fb_displayWidthMultiLine
Nov 25, 2025
Merged

GridColumn to only apply displayWidth to multiLine columns#1900
cnathe merged 6 commits intodevelopfrom
fb_displayWidthMultiLine

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Nov 24, 2025

Rationale

Previous related PR started using the displayWidth from the QueryColumn in the GridColumn for the width. However, this was passing through null and empty string values from the server which meant that the default width for the GridColumn wasn't being set. This PR fixes that but also scopes down this change so that the non-empty displayWidth only applies to multiLine text columns (we can reassess having this apply to other columns at a later date).

Related Pull Requests

Changes

  • GridColumn to only apply displayWidth to multiLine columns

}

// only apply the displayWidth, if avaialble, to multiLine text columns
const _displayWidth = c.rangeURI?.endsWith('multiLine') ? c.displayWidth : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: It'd be nice to keep logic out of Grid.tsx related to query modeling.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@labkey-nicka good point. I moved the logic over to the QueryColumn constructor. Thoughts on this approach?

@cnathe cnathe merged commit 08b3762 into develop Nov 25, 2025
3 checks passed
@cnathe cnathe deleted the fb_displayWidthMultiLine branch November 25, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants